package com.aspose.cells;

class zgn implements zaft {
   private Cells a;
   private RowCollection b;
   private String c;
   private boolean d;
   private zfv e;
   private zfv f;

   zgn(Cells var1, String var2, boolean var3) {
      this.a = var1;
      this.b = var1.getRows();
      this.c = var2;
      this.d = var3;
      this.e = new zfv();
      this.f = this.e;
   }

   public boolean a(zp var1, int var2) {
      if (var1.h(var2) != 5) {
         return false;
      } else {
         this.f = var1.a(var2, this.e, 7);
         zyi var3 = (zyi)var1.i(var2);
         String var4 = var3.k();
         if (var4 == null) {
            this.f = var1.a(var2, this.e, 3);
            if (this.f == this.e) {
               this.f.c = 5;
               this.f.d = var3;
            }

            var4 = (new Cell(new Row(this.a, this.b, var1, false), var2, this.f, this.f == this.e)).t();
         }

         if (this.d) {
            if (var4 == null || var4.toUpperCase().indexOf(this.c) < 0) {
               return false;
            }
         } else if (!com.aspose.cells.b.a.zv.b(var4, this.c)) {
            return false;
         }

         return true;
      }
   }
}
